#!/bin/bash
# MonitorPlatform Setup Script

echo "Setting up MonitorPlatform..."

# Build all projects
dotnet build

# Restore packages
dotnet restore

# Setup database (requires Docker)
docker-compose -f docker/docker-compose.yml up -d postgres

# Wait for database to be ready
sleep 10

# Run migrations (if any)
# dotnet ef database update --project src/MonitorPlatform.Data

echo "Setup completed!"
echo "Run 'docker-compose -f docker/docker-compose.yml up' to start all services"
